package edu.spec.lyq.week08.class2.home;

/**
 * \* User: 11028
 * \* Date: 2018/10/22
 * \* Time: 19:23
 * \* Description:
 */
/*6）建立测试类TestOne，在main方法里实例化一头北极熊，运行它的wholeLife方法，输出运行结果，实例化一只青蛙，运行它的wholeLife方法。

 */
public class TestOne {
    public static void main(String[] args) {
        Bear b = new Bear("北极熊","鱼","北极",4);
        System.out.println(b.wholeLife()+"\n");
        Frog f = new Frog("青蛙","蝗虫","水田","两栖");
        System.out.println(f.wholeLife());
    }
}
